
<?php if (validation_errors()) : ?>
<div class="notification error">
	<?php echo validation_errors(); ?>
</div>
<?php endif; ?>
<?php // Change the css classes to suit your needs    
if( isset($user_details) ) {
	$user_details = (array)$user_details;
}
$id = isset($user_details['id']) ? "/".$user_details['id'] : '';
?>
<?php echo form_open($this->uri->uri_string(), 'class="constrained ajax-form"'); ?>
<?php if(isset($user_details['id'])): ?><input id="id" type="hidden" name="id" value="<?php echo $user_details['id'];?>"  /><?php endif;?>
<div>
        <?php echo form_label('Student Id', 'student_id'); ?>
        <input id="student_id" type="text" name="student_id" maxlength="3" value="<?php echo set_value('student_id', isset($user_details['student_id']) ? $user_details['student_id'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Achievement Points -Time-', 'achievepoints_time'); ?>
        <input id="achievepoints_time" type="text" name="achievepoints_time" value="<?php echo set_value('achievepoints_time', isset($user_details['achievepoints_time']) ? $user_details['achievepoints_time'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Achievement Points -Class-', 'achievepoints_class'); ?>
        <input id="achievepoints_class" type="text" name="achievepoints_class" value="<?php echo set_value('achievepoints_class', isset($user_details['achievepoints_class']) ? $user_details['achievepoints_class'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Achievement Points -Wiki-', 'achievepoints_wiki'); ?>
        <input id="achievepoints_wiki" type="text" name="achievepoints_wiki" value="<?php echo set_value('achievepoints_wiki', isset($user_details['achievepoints_wiki']) ? $user_details['achievepoints_wiki'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Achievement Points -Forum-', 'achievepoints_forum'); ?>
        <input id="achievepoints_forum" type="text" name="achievepoints_forum" value="<?php echo set_value('achievepoints_forum', isset($user_details['achievepoints_forum']) ? $user_details['achievepoints_forum'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Achievement Points -Main-', 'achievepoints_main'); ?>
        <input id="achievepoints_main" type="text" name="achievepoints_main" value="<?php echo set_value('achievepoints_main', isset($user_details['achievepoints_main']) ? $user_details['achievepoints_main'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Achievement Points -Side-', 'achievepoints_side'); ?>
        <input id="achievepoints_side" type="text" name="achievepoints_side" value="<?php echo set_value('achievepoints_side', isset($user_details['achievepoints_side']) ? $user_details['achievepoints_side'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Achievement Points -Meta-', 'achievepoints_meta'); ?>
        <input id="achievepoints_meta" type="text" name="achievepoints_meta" value="<?php echo set_value('achievepoints_meta', isset($user_details['achievepoints_meta']) ? $user_details['achievepoints_meta'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Student Photo', 'student_photo'); ?>
        <input id="student_photo" type="text" name="student_photo" maxlength="50" value="<?php echo set_value('student_photo', isset($user_details['student_photo']) ? $user_details['student_photo'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Student Header', 'student_header'); ?>
        <input id="student_header" type="text" name="student_header" maxlength="75" value="<?php echo set_value('student_header', isset($user_details['student_header']) ? $user_details['student_header'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Student Css', 'student_css'); ?>
        <input id="student_css" type="text" name="student_css" maxlength="35" value="<?php echo set_value('student_css', isset($user_details['student_css']) ? $user_details['student_css'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Student Assetpath', 'student_assetpath'); ?>
        <input id="student_assetpath" type="text" name="student_assetpath" maxlength="150" value="<?php echo set_value('student_assetpath', isset($user_details['student_assetpath']) ? $user_details['student_assetpath'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Student Ownpath', 'student_ownpath'); ?>
        <input id="student_ownpath" type="text" name="student_ownpath" maxlength="175" value="<?php echo set_value('student_ownpath', isset($user_details['student_ownpath']) ? $user_details['student_ownpath'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Current Css', 'current_css'); ?>
        <input id="current_css" type="text" name="current_css" maxlength="175" value="<?php echo set_value('current_css', isset($user_details['current_css']) ? $user_details['current_css'] : ''); ?>"  />
</div>



	<div class="text-right">
		<br/>
		<input type="submit" name="submit" value="Edit User Details" /> or <?php echo anchor(SITE_AREA .'/content/user_details', lang('user_details_cancel')); ?>
	</div>
	<?php echo form_close(); ?>

	<div class="box delete rounded">
		<a class="button" id="delete-me" href="<?php echo site_url(SITE_AREA .'/content/user_details/delete/'. $id); ?>" onclick="return confirm('<?php echo lang('user_details_delete_confirm'); ?>')"><?php echo lang('user_details_delete_record'); ?></a>
		
		<h3><?php echo lang('user_details_delete_record'); ?></h3>
		
		<p><?php echo lang('user_details_edit_text'); ?></p>
	</div>
